package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.Result;
import com.example.domain.Follow;

/**
 * @author chenliang
 * @description 针对表【tb_follow】的数据库操作Service
 * @createDate 2024-07-18 19:35:09
 */
public interface FollowService extends IService<Follow> {
    /**
     * 关注和取消关注
     *
     * @param followUserId
     * @param isFollow
     * @return
     */
    Result follow(Long followUserId, Boolean isFollow);

    /**
     * 判断是否关注
     *
     * @param followUserId
     * @return
     */
    Result isFollow(Long followUserId);

    /**
     * 共同关注
     *
     * @param id
     * @return
     */
    Result followCommons(Long id);
}
